package com.ruoyi.electronicFence.service.Impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.electronicFence.mapper.TEfAreaEquipmentMapper;
import com.ruoyi.electronicFence.domain.TEfAreaEquipment;
import com.ruoyi.electronicFence.service.ITEfAreaEquipmentService;

/**
 * 场景-设备/场所关联Service业务层处理
 *
 * @author sxygsj
 * @date 2024-05-31
 */
@Service
public class TEfAreaEquipmentServiceImpl implements ITEfAreaEquipmentService
{
    @Autowired
    private TEfAreaEquipmentMapper tEfAreaEquipmentMapper;

    /**
     * 查询场景-设备/场所关联
     *
     * @param id 场景-设备/场所关联主键
     * @return 场景-设备/场所关联
     */
    @Override
    public TEfAreaEquipment selectTEfAreaEquipmentById(Long id)
    {
        return tEfAreaEquipmentMapper.selectTEfAreaEquipmentById(id);
    }

    /**
     * 查询场景-设备/场所关联列表
     *
     * @param tEfAreaEquipment 场景-设备/场所关联
     * @return 场景-设备/场所关联
     */
    @Override
    public List<TEfAreaEquipment> selectTEfAreaEquipmentList(TEfAreaEquipment tEfAreaEquipment)
    {
        return tEfAreaEquipmentMapper.selectTEfAreaEquipmentList(tEfAreaEquipment);
    }

    /**
     * 新增场景-设备/场所关联
     *
     * @param tEfAreaEquipment 场景-设备/场所关联
     * @return 结果
     */
    @Override
    public int insertTEfAreaEquipment(TEfAreaEquipment tEfAreaEquipment)
    {
        return tEfAreaEquipmentMapper.insertTEfAreaEquipment(tEfAreaEquipment);
    }

    /**
     * 修改场景-设备/场所关联
     *
     * @param tEfAreaEquipment 场景-设备/场所关联
     * @return 结果
     */
    @Override
    public int updateTEfAreaEquipment(TEfAreaEquipment tEfAreaEquipment)
    {
        return tEfAreaEquipmentMapper.updateTEfAreaEquipment(tEfAreaEquipment);
    }

    /**
     * 批量删除场景-设备/场所关联
     *
     * @param ids 需要删除的场景-设备/场所关联主键
     * @return 结果
     */
    @Override
    public int deleteTEfAreaEquipmentByIds(Long[] ids)
    {
        return tEfAreaEquipmentMapper.deleteTEfAreaEquipmentByIds(ids);
    }

    /**
     * 删除场景-设备/场所关联信息
     *
     * @param id 场景-设备/场所关联主键
     * @return 结果
     */
    @Override
    public int deleteTEfAreaEquipmentById(Long id)
    {
        return tEfAreaEquipmentMapper.deleteTEfAreaEquipmentById(id);
    }
}
